package com.dxy.dxyproduct.enums;

import lombok.Getter;

/**
 * Created by junfeng on 2018/10/15.
 */
@Getter
public enum ResultEnum {

    PRODUCT_NOT_EXIST(1, "商品不存在"),
    PRODUCT_STOCK_ERROR(2, "库存有误"),
    CATEGORY_PARENT_NOT_EXIST(3, "父类不存在"),
    CATEGORY_DELETE_FAIL(4, "分类删除错误"),
    CATEGORY_DELETE_FAIL_OF_HAS_CHILDREN(5, "存在子类，不能删除"),
    CATEGORY_NOT_EXIST(6, "分类不存在"),
    PRODUCT_FAIL(7, "产品参数错误"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}
